// 导入类型、接口、模块、组件、样式
import { FC, lazy } from "react";

import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

// 导入页面组件
const Login = lazy(() => import("../pages/login/index"));

interface Props {}
const ReactRouter: FC<Props> = () => {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<h1>home</h1>} />
        <Route path="/login" element={<Login />} />
        <Route path="/404" element={<h1>404</h1>} />
      </Routes>
    </Router>
  );
};

export default ReactRouter;
